def computer(dataInfo):
    info = {}
    name, value = [], []
    for data in dataInfo:
        data['infoSum'] = int(data['infoSum'])
        value.append(data['infoSum'])
        if data.get("depart__title"):
            name.append(data["depart__title"])
        elif data.get("month"):
            name.append(data["month"])
    info['name'], info['value'] = name, value
    return info